<template>
	<my-field :label="data.label" :needRightIcon="false">
		<u-link :href="data.config.href" :text="data.config.text || data.config.placeholder || ''" color="#2d58cb" lineColor="#2d58cb"
			@click="selectEvent"></u-link>
	</my-field>
    <!-- <van-field
        class="self-cell"
        :label="data.label"
        :placeholder="data.config.placeholder"
        @click-input="selectEvent"
        readonly>
        <template #input>
            <a :href="data.config.href">{{data.config.text}}</a>
        </template>
    </van-field> -->
</template>
<script>
import MyField from '@/pages_form/components/my-field.vue'
export default {
	components: {MyField},
    props: {
        data: {
            type: Object,
            required: true
        }
    },
    created(){

    },
    methods:{
        selectEvent(){
            console.log(this.data);
        }
    }
}
</script>
